<table class="layout" cellpadding="0" cellspacing="0">
	<tr>
		<td>
			<div id="silverlightControlHost">
				<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="200" height="200">
				  <param name="source" value="/xap/SocioRatingGraph.xap">
				  <param name="onError" value="onSilverlightError">
				  <param name="background" value="white">
				  <param name="minRuntimeVersion" value="3.0.40624.0">
				  <param name="autoUpgrade" value="true">
				  <param name="initParams" value="
				  friendly=<?php print $this->rating->friendly ?>, 
				  accurate=<?php print $this->rating->accurate ?>, 
				  helpful=<?php print $this->rating->helpful ?>, 
				  creative=<?php print $this->rating->creative ?>, 
				  trustworthy=<?php print $this->rating->trustworthy ?>, 
				  critical=<?php print $this->rating->critical ?>, 
				  gooder=<?php print $this->rating->gooder ?>">
				  <a href="http://go.microsoft.com/fwlink/?LinkID=149156&amp;v=3.0.40624.0" style="text-decoration:none">
					  <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none">
				  </a>
				</object>
				<iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe>
			</div>
		</td>
		<td>
			<div style="margin-left: 20px">
			<p><?php print $this->by->login == App::$Current->User ? text('Your') : $this->by->fullname . '\'s' ?> <?php text('rating of') ?> <?php 
print $this->to->login == 
	App::$Current->User ? 
		App::$Current->User == $this->by->login ? 
			text('yourself') 
			: text('you') 
		: $this->to->fullname ?></p>
				<p><?php print $this->rating->when_datetime ?></p>
				<p><?php print $this->rating->comment ?></p>
				<?php 
				if($this->by->login == App::$Current->User)
				{
					?><a href="/user/rate/<?php print $this->to->login ?>"><?php text('Update your rating of') ?> <?php print $this->by->login == $this->to->login ? text('yourself') : $this->to->fullname ?>.</a><?php 
				}
				?>
			</div>
		</td>
	</tr>
</table>